# Define bigtablesearch indexes in this file

import bts
from demo import models

posts = bts.create_index('Posts', models.BlogPost, title={},
                                 body={'case_insensitive': True, 'stemmed': True},
                                 date_posted={'filter': True})

posts_by_topic = bts.create_index('PostsByTopic', models.BlogPost, title={},
                                           body={'case_insensitive': True, 'stemmed': True},
                                           topic={'filter': True},
                                           date_posted={'filter': True})
